package com.anzia.storeback.service.impl;

import com.anzia.storeback.dao.OrderDao;
import com.anzia.storeback.dao.SecKillDao;
import com.anzia.storeback.dao.UserDao;
import com.anzia.storeback.entity.SecGood;
import com.anzia.storeback.service.SecKillService;
import com.anzia.storeback.utils.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 *@ClassName SecKillServiceImpl
 *@Description
 *@Author Anzia.
 *@Date 2021/5/31 23:04
 *@Version 1.0
 **/
@Service("secKillServiceImpl")
public class SecKillServiceImpl implements SecKillService {

    @Autowired
    private SecKillDao secKillDao;

    @Autowired
    private OrderDao orderDao;

    @Autowired
    private UserDao userDao;

    @Autowired
    private RedisTemplate<String, Object> redisTemplate;

    @Autowired
    private RedisUtil redisUtil;

    @Autowired
    private

    @Override
    public List<SecGood> getSecGoods() {
        return null;
    }

    @Override
    public SecGood getSecGood(Integer secgood_id) {
        return null;
    }

    @Override
    public int addSecKillOrder(Integer user_id, Integer product_id, Integer secgoods_id) {
        return 0;
    }

    @Override
    public boolean isInSecKill(int secgoods_id) {
        return false;
    }

    @Override
    public Map getSecResult(int user_id, int secgoods_id) {
        return null;
    }

    @Override
    public int decreaseSecGoodsStock(int secgoods_id, int user_id, int product_id) {
        return 0;
    }
}
